cmake_minimum_required(VERSION 3.6)

project(TestDemo)
# 引入头文件
include_directories(../../include)

# 添加子模块
add_subdirectory(ClientMod)
add_subdirectory(ServerMod)

# 服务端实现
add_executable(TestServer testServer.cpp)
target_link_libraries(TestServer ServerMod)

# 客户端实现
add_executable(TestClient testClient.cpp ClientCmdFunction.cpp)
target_link_libraries(TestClient ClientMod)

install(TARGETS TestClient TestServer RUNTIME DESTINATION ${CMAKE_BINARY_DIR}/${CMAKE_SYSTEM_NAME}.out/example)

